package research.domain;

import java.util.Set;

import research.entity.Entity;
import research.entity.EntityType;

public final class ComponentType extends Entity {
	private String name;
	private String description;
	private Set<Component> components;

	public ComponentType() {
		super(EntityType.ComponentType);
	}

	@Override
	public String getDisplayName() {
		return this.getName();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Set<Component> getComponents() {
		return components;
	}

	public void setComponents(Set<Component> components) {
		this.components = components;
	}

	public static ComponentType getNew() {
		ComponentType res = new ComponentType();
		res.setName("");
		res.setDescription("");
		return res;
	}

}
